<template>
  <div v-if="message" :class="['status-message', type]">
    {{ message }}
  </div>
</template>

<script>
export default {
  name: 'StatusBar',
  props: {
    message: {
      type: String,
      default: ''
    },
    type: {
      type: String,
      default: 'info',
      validator: (value) => ['info', 'success', 'error'].includes(value)
    }
  }
}
</script>